package com.hibay.goldking.common.loadmore

import com.chad.library.adapter.base.module.BaseLoadMoreModule

/**
 *
 *
 * @author chenchao
 * @date 3/1/21 11:23
 */
fun BaseLoadMoreModule.setLoadMoreStatus(loadMoreStatus: LoadMoreStatus) {
    when (loadMoreStatus) {
        LoadMoreStatus.COMPLETED -> loadMoreComplete()
        LoadMoreStatus.ERROR -> loadMoreFail()
        LoadMoreStatus.END -> loadMoreEnd()
        else -> return
    }
}